//mutationi是修改store全局变量的唯一形式
import {set } from 'vue'
import * as types from './mutation-types'

export default {

    [types.POP_PERFECT](state, tag, status) {
        if (tag == 'pop') {
            let ui = state.ui;
            ui.mask.status = status;
            state.ui = ui;
        }
        state.popPerfect[tag] = status;
        
    },
    [types.LOGINSTATE](state, obj) {
        state.loginState = obj;
    },

    [types.UI](state, obj) {
        state.ui = obj;
    },
    //零售表格数据
    [types.MAIN_TABLE](state, obj) {
        state.mainTable = obj;
    },
    //登录信息  
    [types.USER_INFO](state, obj) {
        state.userInfo = obj;
    },

}